<?php
namespace User\Controller;
use Think\Controller;

class TestController extends Controller{

    Public function index() {
    	$data=session('user');
    	$this->assign('data',$data);
    	$this->display();
    }
    public function tree(){
		// 分配菜单数据
		$nav_data=D('AdminNav')->getTreeData('tree','order_number,id');
		
		$assign=array(
			'data'=>$nav_data
			);
		//$this->ajaxReturn($assign);die;
		dump($assign);die;
		$this->assign($assign);
		$this->display();
	}
	public function t1(){
		$data=session('user');
		dump($data);
	}
}
?>